home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / necko / nsIFTPChannel.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  154 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIFTPChannel.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIFTPChannel_h__
  6. #define __gen_nsIFTPChannel_h__
  7.  
  8.  
  9. #ifndef __gen_nsIChannel_h__
  10. #include "nsIChannel.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIRequestObserver; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIFTPChannel */
  21. #define NS_IFTPCHANNEL_IID_STR "3476df52-1dd2-11b2-b928-925d89b33bc0"
  22.  
  23. #define NS_IFTPCHANNEL_IID \
  24.   {0x3476df52, 0x1dd2, 0x11b2, \
  25.     { 0xb9, 0x28, 0x92, 0x5d, 0x89, 0xb3, 0x3b, 0xc0 }}
  26.  
  27. class NS_NO_VTABLE nsIFTPChannel : public nsIChannel {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IFTPCHANNEL_IID)
  31.  
  32. };
  33.  
  34. /* Use this macro when declaring classes that implement this interface. */
  35. #define NS_DECL_NSIFTPCHANNEL \
  36.   /* no methods! */
  37.  
  38. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  39. #define NS_FORWARD_NSIFTPCHANNEL(_to) \
  40.   /* no methods! */
  41.  
  42. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  43. #define NS_FORWARD_SAFE_NSIFTPCHANNEL(_to) \
  44.   /* no methods! */
  45.  
  46. #if 0
  47. /* Use the code below as a template for the implementation class for this interface. */
  48.  
  49. /* Header file */
  50. class nsFTPChannel : public nsIFTPChannel
  51. {
  52. public:
  53.   NS_DECL_ISUPPORTS
  54.   NS_DECL_NSIFTPCHANNEL
  55.  
  56.   nsFTPChannel();
  57.  
  58. private:
  59.   ~nsFTPChannel();
  60.  
  61. protected:
  62.   /* additional members */
  63. };
  64.  
  65. /* Implementation file */
  66. NS_IMPL_ISUPPORTS1(nsFTPChannel, nsIFTPChannel)
  67.  
  68. nsFTPChannel::nsFTPChannel()
  69. {
  70.   /* member initializers and constructor code */
  71. }
  72.  
  73. nsFTPChannel::~nsFTPChannel()
  74. {
  75.   /* destructor code */
  76. }
  77.  
  78. /* End of implementation class template. */
  79. #endif
  80.  
  81.  
  82. /* starting interface:    nsIFTPEventSink */
  83. #define NS_IFTPEVENTSINK_IID_STR "455d4234-0330-43d2-bbfb-99afbecbfeb0"
  84.  
  85. #define NS_IFTPEVENTSINK_IID \
  86.   {0x455d4234, 0x0330, 0x43d2, \
  87.     { 0xbb, 0xfb, 0x99, 0xaf, 0xbe, 0xcb, 0xfe, 0xb0 }}
  88.  
  89. class NS_NO_VTABLE nsIFTPEventSink : public nsISupports {
  90.  public: 
  91.  
  92.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IFTPEVENTSINK_IID)
  93.  
  94.   /* void OnFTPControlLog (in boolean server, in string msg); */
  95.   NS_IMETHOD OnFTPControlLog(PRBool server, const char *msg) = 0;
  96.  
  97. };
  98.  
  99. /* Use this macro when declaring classes that implement this interface. */
  100. #define NS_DECL_NSIFTPEVENTSINK \
  101.   NS_IMETHOD OnFTPControlLog(PRBool server, const char *msg); 
  102.  
  103. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  104. #define NS_FORWARD_NSIFTPEVENTSINK(_to) \
  105.   NS_IMETHOD OnFTPControlLog(PRBool server, const char *msg) { return _to OnFTPControlLog(server, msg); } 
  106.  
  107. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  108. #define NS_FORWARD_SAFE_NSIFTPEVENTSINK(_to) \
  109.   NS_IMETHOD OnFTPControlLog(PRBool server, const char *msg) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnFTPControlLog(server, msg); } 
  110.  
  111. #if 0
  112. /* Use the code below as a template for the implementation class for this interface. */
  113.  
  114. /* Header file */
  115. class nsFTPEventSink : public nsIFTPEventSink
  116. {
  117. public:
  118.   NS_DECL_ISUPPORTS
  119.   NS_DECL_NSIFTPEVENTSINK
  120.  
  121.   nsFTPEventSink();
  122.  
  123. private:
  124.   ~nsFTPEventSink();
  125.  
  126. protected:
  127.   /* additional members */
  128. };
  129.  
  130. /* Implementation file */
  131. NS_IMPL_ISUPPORTS1(nsFTPEventSink, nsIFTPEventSink)
  132.  
  133. nsFTPEventSink::nsFTPEventSink()
  134. {
  135.   /* member initializers and constructor code */
  136. }
  137.  
  138. nsFTPEventSink::~nsFTPEventSink()
  139. {
  140.   /* destructor code */
  141. }
  142.  
  143. /* void OnFTPControlLog (in boolean server, in string msg); */
  144. NS_IMETHODIMP nsFTPEventSink::OnFTPControlLog(PRBool server, const char *msg)
  145. {
  146.     return NS_ERROR_NOT_IMPLEMENTED;
  147. }
  148.  
  149. /* End of implementation class template. */
  150. #endif
  151.  
  152.  
  153. #endif /* __gen_nsIFTPChannel_h__ */
  154.